﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

    /// <summary>
    /// 实体类TB_Sys_ExamPlaceSpecialityKindsMapping 。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public class TB_Sys_ExamPlaceSpecialityKindsMapping : Entity
    {
        public TB_Sys_ExamPlaceSpecialityKindsMapping() : base("TB_Sys_ExamPlaceSpecialityKindsMapping") { _ExamPlaceSpecialityKindsMappingID = Guid.NewGuid().ToString(); }

        #region Model
        private string _ExamPlaceSpecialityKindsMappingID;
        private string _ExamPlaceNO;
        private string _SpecialityKindsNO;
        private string _ExamYear;
        private DateTime? _SceneStartDate;
        private DateTime? _SceneEndDate;
        private DateTime? _ExamStartDate;
        private DateTime? _ExamEndDate;
        private string _IsOnlineReg;
        private string _IsOpen;
        /// <summary>
        /// 主键
        /// </summary>
        public string ExamPlaceSpecialityKindsMappingID
        {
            get { return _ExamPlaceSpecialityKindsMappingID; }
            set
            {
                this.OnPropertyValueChange(_.ExamPlaceSpecialityKindsMappingID, _ExamPlaceSpecialityKindsMappingID, value);
                this._ExamPlaceSpecialityKindsMappingID = value;
            }
        }
        /// <summary>
        /// 考点编码
        /// </summary>
        public string ExamPlaceNO
        {
            get { return _ExamPlaceNO; }
            set
            {
                this.OnPropertyValueChange(_.ExamPlaceNO, _ExamPlaceNO, value);
                this._ExamPlaceNO = value;
            }
        }
        /// <summary>
        /// 专业编码
        /// </summary>
        public string SpecialityKindsNO
        {
            get { return _SpecialityKindsNO; }
            set
            {
                this.OnPropertyValueChange(_.SpecialityKindsNO, _SpecialityKindsNO, value);
                this._SpecialityKindsNO = value;
            }
        }
        /// <summary>
        /// 考试年度
        /// </summary>
        public string ExamYear
        {
            get { return _ExamYear; }
            set
            {
                this.OnPropertyValueChange(_.ExamYear, _ExamYear, value);
                this._ExamYear = value;
            }
        }
        /// <summary>
        /// 现场报名开始时间
        /// </summary>
        public DateTime? SceneStartDate
        {
            get { return _SceneStartDate; }
            set
            {
                this.OnPropertyValueChange(_.SceneStartDate, _SceneStartDate, value);
                this._SceneStartDate = value;
            }
        }
        /// <summary>
        /// 现场报名结束时间
        /// </summary>
        public DateTime? SceneEndDate
        {
            get { return _SceneEndDate; }
            set
            {
                this.OnPropertyValueChange(_.SceneEndDate, _SceneEndDate, value);
                this._SceneEndDate = value;
            }
        }
        /// <summary>
        /// 考试开始时间
        /// </summary>
        public DateTime? ExamStartDate
        {
            get { return _ExamStartDate; }
            set
            {
                this.OnPropertyValueChange(_.ExamStartDate, _ExamStartDate, value);
                this._ExamStartDate = value;
            }
        }
        /// <summary>
        /// 考试结束时间
        /// </summary>
        public DateTime? ExamEndDate
        {
            get { return _ExamEndDate; }
            set
            {
                this.OnPropertyValueChange(_.ExamEndDate, _ExamEndDate, value);
                this._ExamEndDate = value;
            }
        }
        /// <summary>
        /// 是否网报（1：开启   0：无效）
        /// </summary>
        public string IsOnlineReg
        {
            get { return _IsOnlineReg; }
            set
            {
                this.OnPropertyValueChange(_.IsOnlineReg, _IsOnlineReg, value);
                this._IsOnlineReg = value;
            }
        }
        /// <summary>
        /// 是否开放（1：开启   0：无效）
        /// </summary>
        public string IsOpen
        {
            get { return _IsOpen; }
            set
            {
                this.OnPropertyValueChange(_.IsOpen, _IsOpen, value);
                this._IsOpen = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
				_.ExamPlaceSpecialityKindsMappingID};
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
				_.ExamPlaceSpecialityKindsMappingID,
				_.ExamPlaceNO,
				_.SpecialityKindsNO,
				_.ExamYear,
				_.SceneStartDate,
				_.SceneEndDate,
				_.ExamStartDate,
				_.ExamEndDate,
				_.IsOnlineReg,
				_.IsOpen};
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
				this._ExamPlaceSpecialityKindsMappingID,
				this._ExamPlaceNO,
				this._SpecialityKindsNO,
				this._ExamYear,
				this._SceneStartDate,
				this._SceneEndDate,
				this._ExamStartDate,
				this._ExamEndDate,
				this._IsOnlineReg,
				this._IsOpen};
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(IDataReader reader)
        {
            this._ExamPlaceSpecialityKindsMappingID = DataUtils.ConvertValue<string>(reader["ExamPlaceSpecialityKindsMappingID"]);
            this._ExamPlaceNO = DataUtils.ConvertValue<string>(reader["ExamPlaceNO"]);
            this._SpecialityKindsNO = DataUtils.ConvertValue<string>(reader["SpecialityKindsNO"]);
            this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
            this._SceneStartDate = DataUtils.ConvertValue<DateTime?>(reader["SceneStartDate"]);
            this._SceneEndDate = DataUtils.ConvertValue<DateTime?>(reader["SceneEndDate"]);
            this._ExamStartDate = DataUtils.ConvertValue<DateTime?>(reader["ExamStartDate"]);
            this._ExamEndDate = DataUtils.ConvertValue<DateTime?>(reader["ExamEndDate"]);
            this._IsOnlineReg = DataUtils.ConvertValue<string>(reader["IsOnlineReg"]);
            this._IsOpen = DataUtils.ConvertValue<string>(reader["IsOpen"]);
        }
        /// <summary>
        /// 给当前实体赋值
        /// </summary>
        public override void SetPropertyValues(DataRow row)
        {
            this._ExamPlaceSpecialityKindsMappingID = DataUtils.ConvertValue<string>(row["ExamPlaceSpecialityKindsMappingID"]);
            this._ExamPlaceNO = DataUtils.ConvertValue<string>(row["ExamPlaceNO"]);
            this._SpecialityKindsNO = DataUtils.ConvertValue<string>(row["SpecialityKindsNO"]);
            this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
            this._SceneStartDate = DataUtils.ConvertValue<DateTime?>(row["SceneStartDate"]);
            this._SceneEndDate = DataUtils.ConvertValue<DateTime?>(row["SceneEndDate"]);
            this._ExamStartDate = DataUtils.ConvertValue<DateTime?>(row["ExamStartDate"]);
            this._ExamEndDate = DataUtils.ConvertValue<DateTime?>(row["ExamEndDate"]);
            this._IsOnlineReg = DataUtils.ConvertValue<string>(row["IsOnlineReg"]);
            this._IsOpen = DataUtils.ConvertValue<string>(row["IsOpen"]);
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "TB_Sys_ExamPlaceSpecialityKindsMapping");
            /// <summary>
            /// 主键
            /// </summary>
            public readonly static Field ExamPlaceSpecialityKindsMappingID = new Field("ExamPlaceSpecialityKindsMappingID", "TB_Sys_ExamPlaceSpecialityKindsMapping", "主键");
            /// <summary>
            /// 考点编码
            /// </summary>
            public readonly static Field ExamPlaceNO = new Field("ExamPlaceNO", "TB_Sys_ExamPlaceSpecialityKindsMapping", "考点编码");
            /// <summary>
            /// 专业编码
            /// </summary>
            public readonly static Field SpecialityKindsNO = new Field("SpecialityKindsNO", "TB_Sys_ExamPlaceSpecialityKindsMapping", "专业编码");
            /// <summary>
            /// 考试年度
            /// </summary>
            public readonly static Field ExamYear = new Field("ExamYear", "TB_Sys_ExamPlaceSpecialityKindsMapping", "考试年度");
            /// <summary>
            /// 现场报名开始时间
            /// </summary>
            public readonly static Field SceneStartDate = new Field("SceneStartDate", "TB_Sys_ExamPlaceSpecialityKindsMapping", "现场报名开始时间");
            /// <summary>
            /// 现场报名结束时间
            /// </summary>
            public readonly static Field SceneEndDate = new Field("SceneEndDate", "TB_Sys_ExamPlaceSpecialityKindsMapping", "现场报名结束时间");
            /// <summary>
            /// 考试开始时间
            /// </summary>
            public readonly static Field ExamStartDate = new Field("ExamStartDate", "TB_Sys_ExamPlaceSpecialityKindsMapping", "考试开始时间");
            /// <summary>
            /// 考试结束时间
            /// </summary>
            public readonly static Field ExamEndDate = new Field("ExamEndDate", "TB_Sys_ExamPlaceSpecialityKindsMapping", "考试结束时间");
            /// <summary>
            /// 是否网报（1：开启   0：无效）
            /// </summary>
            public readonly static Field IsOnlineReg = new Field("IsOnlineReg", "TB_Sys_ExamPlaceSpecialityKindsMapping", "是否网报（1：开启   0：无效）");
            /// <summary>
            /// 是否开放（1：开启   0：无效）
            /// </summary>
            public readonly static Field IsOpen = new Field("IsOpen", "TB_Sys_ExamPlaceSpecialityKindsMapping", "是否开放（1：开启   0：无效）");
        }
        #endregion


    }
}

